<ul class="nav nav-pills">
  <li><%= link_to "Inicio", root_path %><li>
</ul>





<%###### Inicio Normal users ######################3  %> 

<%# Menu Inicio %>

<%# Menu Terminos %>
<ul class="nav nav-pills">
  <% if user_signed_in? %>
    <li>
      <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Terminos <b class="caret"></b></a>
      <ul class="dropdown-menu">
      	<li ><%= link_to ' Ver Terminos', terminos_path %></li>
        <li ><%= link_to 'Nuevo Termino', new_termino_path %></li> 
    </li>
      </ul>
  <%else%>
  	<ul class="nav nav-pills">
    <li><%= link_to 'Editor', new_user_session_path %></li>
  
	</ul>

  <% end %>
</ul>
<%#Fin de Menu Terminos %>
<%##################################### %>
<%# Menu Categorias  %>
<ul class="nav nav-pills">
  <% if user_signed_in? %>
    <li>
      <a class="dropdown-toggle" data-toggle="dropdown" href="#"> Categorias <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li ><%= link_to ' Ver Categorias', categorias_path %></li>
        <li ><%= link_to 'Nuevo Termino', new_categoria_path %></li>
    </li>
      </ul> 
  <% end %>
</ul>




<%#Fin Menu Categorias  %> 

<%###### Fin  Normal users ######################3  %> 



<%#Opciones de  Menu admin  %> 


<%# Menu Expertos solo para el administrador %>



<%# Menu Categorias  %>
<% if user_signed_in? %>
	<ul class="nav nav-pills">
	  <% if current_user.has_role? :admin %>
	      <li><%= link_to 'Admin Roles', users_path %></li>
	  <% end %>
	</ul>


	<ul class="nav nav-pills">
	  <% if current_user.has_role? :admin %>
	      <li><%= link_to 'Editar Cuenta', edit_user_registration_path %></li>
	  <% end %>
	</ul>
 <% end %>

<ul class="nav nav-pills">
  <% if user_signed_in? %>
	  <li>
		  	<p class="muted">
		  		<i class="icon-user icon-white"></i>
		         <%= current_user.name %></br>
		         <%= current_user.email %></br>
		         
		     </p>

	   </li>
     <li>
     <%= link_to 'Salir', destroy_user_session_path, :method=>'delete' %>
   	</li>
  <% end %>
  
</ul>

<ul class="nav nav-pills">
  <% if user_signed_in? %>
       <ul class="nav nav-pills">
         	
		</ul> 
  <% end %>
</ul>


